package com.zzh.myapplication.activity;

import android.content.Intent;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;

import net.icarplus.car.R;
import net.icarplus.car.manager.BaseActivity;
import net.icarplus.car.tools.ToolBarHelper;

/**
 * Created by Administrator on 2016/3/31.
 */
public class BaoEditorCadActivity extends BaseActivity {
    public Toolbar toolbar;
    public Button bu_add_cad;
    @Override
    public void setContent() {
        setContentView(R.layout.activity_editor_cad);
    }
    @Override
    public void initComponent() {
        toolbar = (Toolbar) findViewById(R.id.toolbar);
        ToolBarHelper.setNormalTitleAndBack(this, toolbar, "编辑司机");
        bu_add_cad = (Button)findViewById(R.id.bu_add_cad);
    }
    @Override
    public void setListener() {
        bu_add_cad.setOnClickListener(this);
    }

    @Override
    public void onAfterInit() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.bu_add_cad:
                start_Activity(new Intent(BaoEditorCadActivity.this,BaoAddCadActivity.class));
                break;
        }
    }
}
